package com.Interface;

import java.util.ArrayList;

public class ClassManager {
    private ArrayList<Student>students=new ArrayList<>();
    private StudentOperator studentOperator=new StudentOperatorlmpl1();
    public ClassManager() {
        students.add(new Student("迪丽热巴",'女',99));
        students.add(new Student("古力娜扎",'女',100));
        students.add(new Student("马儿扎哈",'男',80));
        students.add(new Student("卡尔扎巴",'男',60));
    }
    //打印全班全部同学的信息
    public void printInfo(){
        studentOperator.printAllInfo(students);

    }
    //打印全班全部同学的平均分
    public void printScore(){
        studentOperator.printAllScore(students);
    }
}
